#include "Control.h"

Control::Control(void)
{
}

Control::~Control(void)
{
}

bool Control::Init()
{
	m_boardType = TYPE_CONTROL;
	m_attribute = ATTR_ALL;
	SetBoardPos(0,0);
	SetBoardSize(100,100);
	Board::Init();

	return true;
}

bool Control::Frame()
{
	Board::Frame();
	return true;
}

bool Control::Render()
{
	Board::Render();
	return true;
}

bool Control::Release()
{
	Board::Release();
	return true;
}

void Control::InputProcess()
{
	Board::InputProcess();
 
	if( GetCapturedBoard() != this )
		return;

	if(IsMoveable())
	{	
		SetBoardPos(m_posX + m_pInput->GetCursorMoveX() , m_posY + m_pInput->GetCursorMoveY());
	}	
}

